package com.eclipse.e20200117_dbcp_HikariCP.HikariCP;

import java.sql.Connection;
import java.util.Properties;

import com.zaxxer.hikari.HikariConfig;
import com.zaxxer.hikari.HikariDataSource;

public class Test1 {

	public static void main(String[] args) throws Exception {

		Properties properties = new Properties();
		properties.load(Test1.class.getClassLoader().getResourceAsStream("hikaricp.properties"));
		
		HikariConfig config = new HikariConfig(properties);//创建数据源
		HikariDataSource dataSource = new HikariDataSource(config);
		Connection connection = dataSource.getConnection();
		
	}
}